package com.tailyou.hms.smartcity.https;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class HttpRetrofit {

    private static HttpApis httpApis = null;

    public static HttpApis getHttpApis() {
        if (httpApis == null) {
            Retrofit.Builder builder = new Retrofit.Builder();
            Retrofit retrofit = builder.baseUrl("https://www.wanandroid.com/")
                    .client(new OkHttpClient())
                    .addConverterFactory(GsonConverterFactory.create())
                    .build();
            httpApis = retrofit.create(HttpApis.class);
        }
        return httpApis;
    }

}
